import request from '@/utils/request'

// 查询患者医生聊天记录列表
export function listDescription(query) {
  return request({
    url: '/websocket/patientConditionDescription/list',
    method: 'get',
    params: query
  })
}

// 查询患者医生聊天记录详细
export function getDescription(id) {
  return request({
    url: '/websocket/patientConditionDescription/getConditionById',
    method: 'get',
    params: {
      id
    }
  })
}

// 新增患者医生聊天记录
export function addDescription(data) {
  return request({
    url: '/websocket/patientConditionDescription/add',
    method: 'post',
    data: data
  })
}

// 修改患者医生聊天记录
export function updateDescription(data) {
  return request({
    url: '/websocket/patientConditionDescription/update',
    method: 'put',
    data: data
  })
}

// 删除患者医生聊天记录
export function delDescription(ids) {
  return request({
    url: '/websocket/patientConditionDescription/batchDelete',
    method: 'post',
    params: {
      ids
    }
  })
}
